package com.tjmc.tiomscore.dao;

import com.tjmc.tiomscore.model.TiSubnet;
import com.tjmc.tiomscore.model.TiSubnetExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TiSubnetMapper {
    long countByExample(TiSubnetExample example);

    int deleteByExample(TiSubnetExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TiSubnet record);

    int insertSelective(TiSubnet record);

    List<TiSubnet> selectByExample(TiSubnetExample example);

    TiSubnet selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TiSubnet record, @Param("example") TiSubnetExample example);

    int updateByExample(@Param("record") TiSubnet record, @Param("example") TiSubnetExample example);

    int updateByPrimaryKeySelective(TiSubnet record);

    int updateByPrimaryKey(TiSubnet record);

    void truncateTable();

    void insertDataFromTranPtnSbn();

    void correctParentId();
}